package com.name.givename.dao;

import com.name.givename.entity.UserInfoEntity;
import com.name.givename.entity.UserInformationEntity;
import com.name.givename.param.BindPhoneParams;

import java.util.List;

public interface UserInfoEntityMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(UserInfoEntity record);

    UserInfoEntity selectByPrimaryKey(Integer userId);

    List<UserInfoEntity> selectAll();

    int updateByPrimaryKey(UserInfoEntity record);

    UserInformationEntity getUserInformationByOpenId(String openId);

    Integer bindPhone(BindPhoneParams bindPhoneParams);

    UserInfoEntity selectByUserPhone(String phone);

    int updateUserInfoByPhone(String phone);

}